<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> 
  <style type="text/css">
  	#images {
  		width:150px;
  		height:150px;
  	}
  </style>
  </head>
  <body>
    <div class="container">
    <c:forEach items="${list}" var="user" >
	  	<div class="row">
		  <div class="col-md-6">
		  	序号：${user.id }
		  	用户名：${user.username }
		  </div>
		  <div class="col-md-6">
	           <c:if test="${user.photo !=null }">
	            	<img id="images" alt="" src="/image/${user.photo }">
	            </c:if>         
			</div>
		</div>
	 </c:forEach>	  
	</div>
  </body>
</html>